package com.qf.leadnewsjob.handlers;

import com.qf.qfleadnewsfeignapi.article.ArticleApi;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class HotNewsComputeHandler {

    @Autowired
    private ArticleApi articleApi;

    @XxlJob("computeHotNews")
    public void compute(){
        articleApi.computeHot();
    }
}
